home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / Strings.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  1.2 KB  |  63 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Strings.p
  3.  
  4.      Contains:    Pascal <-> C String Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Strings;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __STRINGS__}
  30. {$SETC __STRINGS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC StringsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45. {$IFC OLDROUTINELOCATIONS }
  46.  
  47. PROCEDURE C2PStrProc(aStr: UNIV Ptr);
  48. FUNCTION C2PStr(cString: UNIV Ptr): StringPtr;
  49. PROCEDURE P2CStrProc(aStr: StringPtr);
  50. FUNCTION P2CStr(pString: StringPtr): Ptr;
  51. {$ENDC}
  52.  
  53. {$ALIGN RESET}
  54. {$POP}
  55.  
  56. {$SETC UsingIncludes := StringsIncludes}
  57.  
  58. {$ENDC} {__STRINGS__}
  59.  
  60. {$IFC NOT UsingIncludes}
  61.  END.
  62. {$ENDC}
  63.